import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

/*
测试类
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("web service start");
        UserService implementor = new UserServiceImpl();
        String address = "http://localhost:8080/userService";
        JaxWsServerFactoryBean factoryBean = new JaxWsServerFactoryBean();
        factoryBean.setAddress(address);
        factoryBean.setServiceClass(UserService.class);
        factoryBean.setServiceBean(implementor);
        factoryBean.create();
        System.out.println("web service started");
        System.out.println("-------------------");
        System.out.println("学生个人基本信息如下");
    }
}
